package com.guo.core.framework.JDBCtest;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;

/**
 * @projectName: 接口梳理
 * @package: com.guo.core.framework.JDBCtest
 * @className: Demo
 * @author: zhangcan30
 * @description: TODO
 * @date: 2023/12/28 17:18
 * @version: 1.0
 */
public class Demo {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext classPathXmlApplicationContext=new ClassPathXmlApplicationContext("config/test.xml");
        classPathXmlApplicationContext.refresh();
        ServiceImpl service = (ServiceImpl)classPathXmlApplicationContext.getBean("service");
        List<Transport> transports = service.getTransports();
        System.out.println(transports);
    }
}
